package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
)

func main() {

	url := "http://192.168.90.206/scheduleManager?year=2019&month=8"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("cache-control", "no-cache")
	req.Header.Add("postman-token", "9c4a6f72-f565-39b4-5968-9d0e30e362ce")

	oaCookie:=&http.Cookie{
		Name:"oa_session",
		Value:"eyJpdiI6IlNXTExUS291OXd5UU9JR2ZSbnpMTGc9PSIsInZhbHVlIjoiaGZmemJFejFrQXdBaHU0eG0wa2pvZjN6WmdqNk1ycGxtMGpJTjVwcTJNWUE1ZlpPYmNJdTRUMWNORU8wc25Nd1l5YWhnR0VKV09odXFvdldtQUpvemc9PSIsIm1hYyI6Ijk0Mzk2MTliODUxNWZkNGZlOTAyOTU2MzVkZWRlNzVhMzUxZDY0OTU3MGRiM2FjNWNiMGRjOTE2ODkzYTFkMjkifQ%3D%3D",
	}
	req.AddCookie(oaCookie)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}